<table>
    <tr>
        <td style="width: 200px;font-weight: bold;">평균 플레이 타임</td>
        <td><?php echo($play_time_array['hours'] . '시간 ' . $play_time_array['min'] . '분 ' . $play_time_array['sec'] . '초')?></td>
        <td></td>
    </tr>
    <tr>
        <td style="font-weight: bold;">평균 농장 레벨</td>
        <td><?php echo($farm_level_avg)?></td>
        <td></td>
    </tr>
</table>


<table>
    <tr>
        <td style="width: 150px;font-weight: bold;">날짜</td>
        <td style="width: 150px;font-weight: bold;">접속자(NRU)</td>
        <td style="width: 150px;font-weight: bold;">접속자(DAU)</td>
        <td style="width: 150px;font-weight: bold;">1일전</td>
        <td style="width: 150px;font-weight: bold;">2일전</td>
        <td></td>
    </tr>
    <?php foreach($test_re as $day => $data) {?>
        <tr>
            <td><?php echo($day . '일')?></td>
            <td><?php echo($data['nru'])?></td>
            <td><?php echo($data['dau'])?></td>
            <td><?php echo($data['1day'])?></td>
            <td><?php echo($data['2day'])?></td>
            <td></td>
        </tr>
    <?php }?>
</table>

<table>
    <tr>
        <td style="width: 200px;">
            <table>
                <tr>
                    <td style="width: 100px;font-weight: bold;">레벨</td>
                    <td style="width: 100px;font-weight: bold;">인원</td>
                </tr>
                <?php if(!empty($test_one_user_level)) {?>
                    <?php foreach($test_one_user_level as $day => $data) {?>
                        <tr>
                            <td><?php echo($data['level'])?></td>
                            <td><?php echo($data['count'])?></td>
                        </tr>
                    <?php }?>
                <?php }?>
            </table>
        </td>
        <td>
            <table>
                <tr>
                    <td style="width: 100px;font-weight: bold;">레벨</td>
                    <td style="width: 100px;font-weight: bold;">인원</td>
                    <td></td>
                </tr>
                <?php if(!empty($test_two_user_level)) {?>
                    <?php foreach($test_two_user_level as $day => $data) {?>
                        <tr>
                            <td><?php echo($data['level'])?></td>
                            <td><?php echo($data['count'])?></td>
                            <td></td>
                        </tr>
                    <?php }?>
                <?php }?>
            </table>
        </td>
    </tr>
</table>


<table border="0">
    <tr>
        <td style="width: 50px;font-weight: bold;">레벨</td>
        <td style="width: 50px;font-weight: bold;">인원</td>
        <td style="width: 200px;font-weight: bold;">플레이 타임</td>
        <td></td>
    </tr>
    <?php foreach($user_level as $data) {?>
        <tr>
            <td><?php echo($data['level'])?></td>
            <td><?php echo($data['count'])?></td>
            <td><?php echo($data['time']['hours'] . '시간 ' . $data['time']['min'] . '분 ' . $data['time']['sec'] . '초')?></td>
            <td></td>
        </tr>
    <?php }?>
</table>

<table border="0">
    <tr>
        <td style="width: 100px;font-weight: bold;">스테이지</td>
        <td style="width: 50px;font-weight: bold;">인원</td>
        <td></td>
    </tr>
    <?php foreach($user_stage as $data) {?>
        <tr>
            <td><?php echo($data['stage'])?></td>
            <td><?php echo($data['count'])?></td>
            <td></td>
        </tr>
    <?php }?>
</table>

<table border="0">
    <tr>
        <td style="width: 150px;font-weight: bold;">총 몬스터 진화</td>
        <td style="width: 150px;font-weight: bold;">총 몬스터 성장</td>
        <td style="width: 150px;font-weight: bold;">총 아이템 업그레이드</td>
        <td style="width: 150px;font-weight: bold;">총 농장 약탈</td>
        <td style="width: 150px;font-weight: bold;">총 농장 도움</td>
        <td style="width: 150px;font-weight: bold;">총 농장 수확</td>
        <td></td>
    </tr>
    <tr>
        <td><?php echo $stats['monster_evolve']?></td>
        <td><?php echo $stats['monster_grow']?></td>
        <td><?php echo $stats['item_upgrade']?></td>
        <td><?php echo $stats['farm_thief']?></td>
        <td><?php echo $stats['farm_help']?></td>
        <td><?php echo $stats['farm_harvest']?></td>
        <td></td>
    </tr>
</table>

<table>
    <tr>
        <td style="width: 400px">
            <table border="0">
                <tr>
                    <td style="width: 150px;font-weight: bold;">골드 사용 및 획득처</td>
                    <td style="width: 100px;font-weight: bold;">카운트</td>
                    <td style="width: 100px;font-weight: bold;">골드</td>
                </tr>
                <?php foreach($gole_log as $data) {?>
                    <tr>
                        <td><?php echo($data['type'])?></td>
                        <td><?php echo($data['count'])?></td>
                        <td><?php echo($data['gold'])?></td>
                    </tr>
                <?php }?>
            </table>
        </td>
        <td>
            <table border="0">
                <tr>
                    <td style="width: 200px;font-weight: bold;">크리스탈 사용 및 획득처</td>
                    <td style="width: 100px;font-weight: bold;">카운트</td>
                    <td style="width: 100px;font-weight: bold;">크리스탈</td>
                    <td></td>
                </tr>
                <?php foreach($crystal_log as $data) {?>
                    <tr>
                        <td><?php echo($data['type'])?></td>
                        <td><?php echo($data['count'])?></td>
                        <td><?php echo($data['crystal'])?></td>
                        <td></td>
                    </tr>
                <?php }?>
            </table>
        </td>
    </tr>
</table>